package com.cspg.ssss.repository;

import com.cspg.ssss.domain.BackHaveEntity;
import com.cspg.ssss.domain.BacklogEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface DaiBanMapper {

    List<BacklogEntity> selectdb(Map<String, Object> map);

    List<BackHaveEntity> selectHandlingList(Map<String, Object> map);

    List<BackHaveEntity> selectLaunchList(Map<String, Object> map);

    int insertBacklog(BacklogEntity entity);

    int updateBacklog(BacklogEntity entity);

    int deleteBacklogByList(List<Integer> list);

    List<BacklogEntity> selectGradeUsers(Map<String, Object> map);

    List<BacklogEntity> selectScoreApplyUsers(Map<String, Object> map);

    List<BacklogEntity> selectProblemUsers(@Param("check_type") int check_type);

    void updateBacklogByGradeDept(Map<String, Object> daibanUpdate);

    void deleteBacklogByProblemId(@Param("problemId") String problemId);
}
